package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.query.CommodityQueryObject;
import java.util.List;
import java.util.Map;

public interface CommodityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    List<Commodity> selectAll();

    int updateByPrimaryKey(Commodity record);


    List<Map<String,Object>> selectForList(CommodityQueryObject qo);

    List<Commodity> selectList(CommodityQueryObject qo);

    void updatestate(Long id);

    void normalstate(Long[] ids);

    void notstateproduct(Long id);
}